<extend name="base" />
<block name="CONTENT">
    <!--开始 利润计算-->
    <div class="contextMargin">
        <div class="col-sm-12 contextTop contextBotton contextBaground">
            <div class="row">
                <div class="col-xs-12">
                    <!-- PAGE CONTENT BEGINS -->
                    <form class="form-horizontal tm">
                        <!--<div style="width:30px;height:30px;border-radius: 60%;border:2px #999999 solid;"></div>-->
                        <div class="form-group formmarginTop formTop7">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset" for="amzCommissionRate"> 选择站点: </label>
                            <div class="col-sm-10 col-xs-10 chageBtncity">
                                <div class="radioContainer">
                                    <div class="radioGroup position radio-inline radioMsg" onclick="chageBtncity(this,0)">
                                        <span class="minRadio"><i class="radioLogo logo"></i></span>
                                        <span class="size14 rMsg" style="margin-left:20px">美国亚马逊</span>
                                    </div>

                                    <div class="radioGroup position radio-inline radioMsg" onclick="chageBtncity(this,1)">
                                        <span class="minRadio"><i class=""></i></span>
                                        <span class="size14 rMsg" style="margin-left:20px">英国亚马逊</span>
                                    </div>

                                    <div class="radioGroup position radio-inline radioMsg" onclick="chageBtncity(this,2)">
                                        <span class="minRadio"><i class=""></i></span>
                                        <span class="size14 rMsg" style="margin-left:20px">法国亚马逊</span>
                                    </div>

                                    <div class="radioGroup position radio-inline radioMsg" onclick="chageBtncity(this,3)">
                                        <span class="minRadio"><i class=""></i></span>
                                        <span class="size14 rMsg" style="margin-left:20px">德国亚马逊</span>
                                    </div>
                                </div>

                            </div>
                        </div>
                        <div class="form-group formmarginTop ">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset" for="amzCommissionRate">佣金比率(%): </label>
                            <div class="col-sm-8 col-xs-10">
                                <div class="row">
                                    <div class="col-lg-12">
                                        <div class="input-group">
                                            <input type="text" class="form-control proportionInput inputBtn color3" id="amzCommissionRate" value="15" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                                            <div class="input-group-btn">
                                                <button type="button" class="btns dropdown-toggle" style="background:#E9E9E9!important;"  data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                                    <b class="arrow fa fa-angle-down dwonStle"></b>
                                                </button>
                                                <ul class="dropdown-menu dropdown-menu-right proportion">
                                                    <li><a href="#">6</a></li>
                                                    <li><a href="#">7</a></li>
                                                    <li><a href="#">8</a></li>
                                                    <li><a href="#">10</a></li>
                                                    <li><a href="#">12</a></li>
                                                    <li><a href="#">15</a></li>
                                                    <li><a href="#">20</a></li>
                                                    <li><a href="#">45</a></li>
                                                </ul>
                                            </div><!-- /btn-group -->
                                        </div><!-- /input-group -->
                                    </div><!-- /.col-lg-6 -->
                                </div><!-- /.row -->
                            </div>
                            <a target="_blank" href="{:U('/Home/Index/profit')}">
                                <div class="col-sm-2 col-xs-2 modalBtn color9">点击查询</div>
                            </a>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset" for="txtCost">产品成本(¥): </label>
                            <div class="col-sm-8 col-xs-10">
                                <input type="text" id="txtCost" name="txtCost" class="col-xs-12 col-sm-12 inputBtn tooltipBtn color3" onkeyup="value=value.replace(/[^\d+.]/g,'') ">
                                <div class="tooltwo tool toolPotion">
                                    <div class="tooltips tooltwoW">
                                        <div class="arrows tooltwoTop"></div>
                                        <span class="msg">产品生产成本+包装费用</span>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group xsPositino">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage lebeibtn1 xs-offset" for="txtPrice">产品售价($): </label>
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage lebeibtn2 labeiDisplay xs-offset" for="form-field-1"> 毛利率(%): </label>
                            <div class="col-sm-8 col-xs-10">
                                <input id="txtPrice" type="text" class="form-control inputBtn color3" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                            </div>
                            <div class="col-sm-2 col-xs-2 labeiTop7 xsInterest">
                                <div class="checkbox size14 laomarginTop5">

                                    <div class="checkGroup position size14 cheackBtn">
                                        <span class="color6" style="margin-left:20px;">毛利率推算价格</span>
                                        <i class="checkLogo"></i>
                                    </div>

                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset" for="form-field-1"> 产品尺寸(cm): </label>
                            <div class="col-sm-10 col-xs-10">
                                <div class="row" style="color:#666666">
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="custom">
                                            <div class="col-sm-11 col-xs-12 inputW">
                                                <input id="txtLength" type="text" class="col-xs-12 col-sm-12 inputBtn color3" placeholder="长" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-1 col-xs-1 tranW"></div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="custom">
                                            <div class="col-sm-11 col-xs-12 inputW">
                                                <input id="txtWidth" type="text" class="col-xs-12 col-sm-12 inputBtn color3" placeholder="宽" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                                            </div>
                                        </div>
                                    </div>
                                    <div class="col-sm-1 col-xs-1 tranW"></div>
                                    <div class="col-sm-3 col-xs-12">
                                        <div class="custom">
                                            <div class="col-sm-11 col-xs-12 inputW">
                                                <input id="txtHeight" type="text" class="col-xs-12 col-sm-12 inputBtn color3" placeholder="高" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="form-group formmarginTop">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset" for="txtWeightAcutal">产品重量(kg): </label>
                            <div class="col-sm-8 col-xs-10">
                                <input id="txtWeightAcutal" type="text" class="form-control inputBtn tooltipBtn color3" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                                <div class="tooltipPosition tool">
                                    <div class="tooltips">
                                        <div class="arrows toolKey"></div>
                                        <span class="msg">在计算头程运费时，产品重量以体积重和实重较大值选取，体积重（kg）=长*宽*高（cm）/5000</span>
                                    </div>
                                </div>
                            </div>
                            <!--<div class="col-sm-2 col-xs-2 labeiTop7">
                                <span data-kg="在计算头程运费时，产品重量已体积重和实重较大值选取，体积重（kg）=长*宽*高（cm）/5000;"><img src="Application/Home/Static/bt/img/flang.png" /></span>
                            </div>-->
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 col-xs-12 control-label no-padding-right labeichage xs-offset" for="txtFreightCost">物流单价(¥/kg): </label>
                            <div class="col-sm-8 col-xs-10">
                                <input id="txtFreightCost" type="text" class="form-control inputBtn color3" onkeyup="value=value.replace(/[^\d+.]/g,'')">
                            </div>
                        </div>

                        <div class="form-group ">
                            <div class="col-sm-2"></div>
                            <div class="col-sm-10 col-xs-6" style="margin-top:10px;">
                                <div class="stratBtn stratCountBtn" style="float:left">算一算</div>
                                <div class="clearBtn stratClearBtn size16 color9" style="float:left">清空</div>
                            </div>
                            <div class="col-sm-4">
                            </div>
                        </div>
                    </form>
                </div>
                <!-- /.col -->
            </div>
        </div>
        <div class="col-sm-12 contextTop cleanTop contextBaground contextDisplay">
            <div class="labeiPadding20 labeiPaddingButton20">
                <div class="row">
                    <div class="col-sm-6 col-xs-8 updatecolor ">
                        <div class="resultlineBlock position">
                            <label class="size16">计算结果：</label>
										<span class="spanRight20 vertivalSuper tooltipBtn">
												<img src="Application/Home/Static/bt/img/flang.png" />
										</span>
                            <div class="radioTootip tool">
                                <div class="dis">
                                    <div>1、头程运费=重量*物流单价*在计算头程运费时，产品重量以泡重和实重较大值选取，泡重（kg）=长*宽*高（cm）、/5000；实称重；即产品的实际称重。</div>
                                    <div>2.平台佣金=产品售价*佣金比例 </div>
                                    <div>3.毛利额：销售价格-（国内费用+平台费用）</div>
                                    <div>4.毛利率=毛利额/销售价格</div>
                                    <div>5.FBA费用<br />
                                        <small>（1）使用亚马逊2016年2月18日最新标准</small><br />
                                        <small>（2）按官方要求除美国站计算订单处理费，捡包费；英、德、法各站仅计算抛重费。</small>
                                    </div>
                                    <div>6.特别说明：<br />
                                        <small>(1)本程序针对中国卖家设计，仅支持standard-size、Non-Media。</small><br />
                                        <small>(2)限本土配送费，忽略了月仓储。</small>
                                    </div>
                                </div>
                            </div>
                        </div>

                        <div class="checkGroup position size14 checkBtnClick" style="margin-top:5px" onclick="chageBtncity(this,4)">
                            <span style="margin-left:20px">将币种统一为人民币</span>
                            <i class="checkLogo"></i>
                        </div>
                    </div>
                    <div class="col-sm-6 col-xs-4 text-right">
                        <button class="resultBtn" data-toggle="modal" data-target="#myModal">对比结果</button>
                    </div>

                    <div class="col-xs-12 labeiTop20">
                        <table id="simple-table" class="table table-striped table-bordered table-hover" style="margin-bottom: 0px;">
                            <thead>
                            <tr class="tableStyle size14">
                                <th>标准</th>
                                <th>产品成本<small>(¥)</small></th>
                                <th>头程运费<small>(¥)</small></th>
                                <th>平台佣金<small class="coin">($)</small></th>
                                <th>FBA<small class="coin">($)</small></th>
                                <th>产品售价<small class="coin">($)</small></th>
                                <th>毛利额<small class="coin">($)</small></th>
                                <th>毛利率<small>(%)</small></th>
                                <th>状态</th>
                            </tr>
                            </thead>

                            <tbody>
                            <tr class="backgFD">
                                <td><span id="calcStandSize"></span></td>
                                <td><span id="calcCost"></span></td>
                                <td><span id="calcShipping"></span></td>
                                <td><span id="calcCommission"></span></td>
                                <td><span id="calcFBA"></span></td>
                                <td><span id="calcPrice"></span></td>
                                <td><span id="calcMargin"></span></td>
                                <td><span id="calcMarginPercent"></span></td>
                                <td><span id="calcStatus"></span></td>
                            </tr>
                            </tbody>
                        </table>
                    </div>
                    <!-- /.span -->
                </div>
                <div class="row labeiTop20">
                    <div class="col-sm-6 col-xs-12 xs956 ">
                        <div class="clearfix">
                            <div class="updatebtnleft updatecolor size14">汇率(<span class="money">USD</span>): &nbsp
                                <span class="moneyMsg color9">6.23</span> (<small class="Time" style="font-size: 12px;"></small>）</div>
                            <!--<div id="refreshRate" class="updateBtnrights size14">更新</div>-->
                        </div>
                    </div>
                    <div class="col-sm-6 col-xs-12 text-right xs-offset">
                        <span class="labeichage">输入汇率重新计算:</span>
                        <input type="text" id="txtRate" onkeyup="value=value.replace(/[^\d+.]/g,'')"  style="margin-left:7px;width: 300px;">
                    </div>
                </div>
            </div>
        </div>
        <div class="col-sm-12 contextTop cleanTop contextBaground contrast contextResult">

            <div class="labeiPadding20 labeiPaddingButton20">
                <div class="row">
                    <div class="col-sm-6 col-xs-8 updatecolor ">
                        <div style="float:left">
                            <label class="size16 lebieRight76">对比结果</label>
                        </div>

                    </div>
                    <div class="col-sm-6 col-xs-4 text-right">
                        <button class="resultBtn tableSubmitBtn">导出excel</button>
                    </div>

                    <div class="col-xs-12 labeiTop20">
                        <table id="table" class="table table-striped table-bordered table-hover" style="margin-bottom: 0px;">
                            <thead>
                            <tr class="tableStyle size14">
                                <th>产品名称</th>
                                <th>站点</th>
                                <th>产品成本</th>
                                <th>头程运费</th>
                                <th>平台佣金</th>
                                <th>FBA</th>
                                <th>产品售价</th>
                                <th>毛利额</th>
                                <th>毛利率</th>
                                <th>状态</th>
                                <th>操作</th>
                            </tr>
                            </thead>

                            <tbody class="contrast tbodyData">
                            </tbody>
                        </table>
                    </div>
                    <!-- /.span -->
                </div>
            </div>

        </div>
    </div>
    <!--结束 利润计算-->
</block>